package com.ssyt.ec.sys.entity;

import java.util.Date;

public class SysRoleEntity {
	private int id;
	private String name;
	private String menu_ids;
	private int operate_user_id;
	private Date operate_time;
	private int state;
	private String memo;
	private String username;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMenu_ids() {
		return menu_ids;
	}
	public void setMenu_ids(String menu_ids) {
		this.menu_ids = menu_ids;
	}
	public int getOperate_user_id() {
		return operate_user_id;
	}
	public void setOperate_user_id(int operate_user_id) {
		this.operate_user_id = operate_user_id;
	}
	public Date getOperate_time() {
		return operate_time;
	}
	public void setOperate_time(Date operate_time) {
		this.operate_time = operate_time;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	public String getStateStr() {
		if (getState() == 1) {
			return "启用";
		} else if (getState() == 2) {
			return "禁用";
		} else {
			return null;
		}
	}
	
}
